package com.sea.operate.service.impl;

import com.codecrane.core.web.BatchImportUtils;
import com.sea.operate.entity.RelatedSku;
import com.sea.operate.entity.RelatedSkuPrice;
import com.sea.operate.entity.RelatedSkuPriceRecord;
import com.sea.operate.mapper.RelatedSkuPriceMapper;
import com.sea.operate.mapper.RelatedSkuPriceRecordMapper;
import com.sea.operate.service.RelatedSkuPriceRecordService;
import com.sea.operate.service.RelatedSkuPriceService;
import com.sea.operate.service.RelatedSkuService;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.InputStream;
import java.util.List;


/**
 * @author 陈鸿飞
 */
@Service
public class RelatedSkuPriceRecordServiceImpl implements RelatedSkuPriceRecordService {

    @Autowired
    private RelatedSkuPriceRecordMapper relatedSkuPriceRecordMapper;

    @Override
    public List<RelatedSkuPriceRecord> findByRelatedPriceId(Integer relatedPriceId) {
        return relatedSkuPriceRecordMapper.findByRelatedPriceId(relatedPriceId);
    }

    @Override
    public Integer save(RelatedSkuPriceRecord relatedSkuPriceRecord) {
        return relatedSkuPriceRecordMapper.insert(relatedSkuPriceRecord);
    }
}
